<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function factorialize(n){
				s=1;
				for(var i =1;i<=n;i++){
					s=s*i;
				}
				return s;
			}
			document.write(factorialize(5));
		</script>
	</head>
	<body>
	</body>
</html>
